local StoryBehavior = require("gameLogic.story.behavior.StoryBehavior")
local StoryCreateHero = class("StoryCreateHero", StoryBehavior)
local Vector3 = require("utils.Vector3")

function StoryCreateHero:ctor()
    StoryCreateHero.super.ctor(self)
end

function StoryCreateHero:_active()
    printDebug("StoryCreateHero:_active() Done")
    local params = self:getParams()
    local pos = params.pos
    local heroName = params.heroName
    local heroRes = params.res
    self:getActuator():addHero(heroRes, pos, heroName)
    self:setDone(true)
end

return StoryCreateHero
